<?php

include_once 'common.php';

$sql = "SELECT * FROM `trex_params`";
$result = exec_sql($sql);
$output = [];
foreach ($result as $key => $value) {
  $output[$value['name']] = json_decode($value['content']);
}
output($output);